package com.chaos.eurekaproducer.basic;

/**
 * @author liaopeng
 * @title: ListNode
 * @projectName eureka-producer
 * @description: 链表
 * @date 2021/6/7下午8:52
 */
public class ListNode {
    int val;
    ListNode next;
    int size=0;
    public ListNode(int val){
        this.val=val;
        size=1;
    }

    public int getVal() {
        return val;
    }

    public void setVal(int val) {
        this.val = val;
    }

    public ListNode getNext() {
        return next;
    }

    public void setNext(ListNode next) {
        this.next = next;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

}
